package com.ruoyi.market.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName repo_ware
 */
@TableName(value ="repo_ware")
@Data
public class RepoWare2 implements Serializable {
    /**
     * 仓库id
     */
    @TableId(type = IdType.AUTO)
    private Integer wareId;

    /**
     * 仓库名称
     */
    private String wareName;

    /**
     * 仓库地址
     */
    private String wareAddress;

    /**
     * 仓库区域（市）id
     */
    private Integer sysCityId;

    /**
     * 负责人id(财务部的员工)
     */
    private Integer sysChargeUserId;

    /**
     * 描述
     */
    private String desc;

    /**
     * 状态(0:不可用；1:可用)
     */
    private String status;

    /**
     * 创建人id
     */
    private Integer sysCreateUserId;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 仓库金额 出库- 入库+
     */
    private Double wareMoney;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        RepoWare2 other = (RepoWare2) that;
        return (this.getWareId() == null ? other.getWareId() == null : this.getWareId().equals(other.getWareId()))
            && (this.getWareName() == null ? other.getWareName() == null : this.getWareName().equals(other.getWareName()))
            && (this.getWareAddress() == null ? other.getWareAddress() == null : this.getWareAddress().equals(other.getWareAddress()))
            && (this.getSysCityId() == null ? other.getSysCityId() == null : this.getSysCityId().equals(other.getSysCityId()))
            && (this.getSysChargeUserId() == null ? other.getSysChargeUserId() == null : this.getSysChargeUserId().equals(other.getSysChargeUserId()))
            && (this.getDesc() == null ? other.getDesc() == null : this.getDesc().equals(other.getDesc()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getSysCreateUserId() == null ? other.getSysCreateUserId() == null : this.getSysCreateUserId().equals(other.getSysCreateUserId()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getWareMoney() == null ? other.getWareMoney() == null : this.getWareMoney().equals(other.getWareMoney()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getWareId() == null) ? 0 : getWareId().hashCode());
        result = prime * result + ((getWareName() == null) ? 0 : getWareName().hashCode());
        result = prime * result + ((getWareAddress() == null) ? 0 : getWareAddress().hashCode());
        result = prime * result + ((getSysCityId() == null) ? 0 : getSysCityId().hashCode());
        result = prime * result + ((getSysChargeUserId() == null) ? 0 : getSysChargeUserId().hashCode());
        result = prime * result + ((getDesc() == null) ? 0 : getDesc().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getSysCreateUserId() == null) ? 0 : getSysCreateUserId().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getWareMoney() == null) ? 0 : getWareMoney().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", wareId=").append(wareId);
        sb.append(", wareName=").append(wareName);
        sb.append(", wareAddress=").append(wareAddress);
        sb.append(", sysCityId=").append(sysCityId);
        sb.append(", sysChargeUserId=").append(sysChargeUserId);
        sb.append(", desc=").append(desc);
        sb.append(", status=").append(status);
        sb.append(", sysCreateUserId=").append(sysCreateUserId);
        sb.append(", createTime=").append(createTime);
        sb.append(", wareMoney=").append(wareMoney);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}